﻿using TestBat.IViewModels.Dialogs;

namespace TestBat.ViewModels.Dialogs
{
    public class DialogMediator : IDialogMediator
    {
        public IDialogViewModelContainer DialogViewModelContainer
        {
            set { dialogViewModelContainer = value; }
        }

        public IDialogViewModel DialogViewModel
        {
            set
            {
                if (dialogViewModelContainer != null)
                    dialogViewModelContainer.DialogViewModel = value;
            }
        }

        private IDialogViewModelContainer dialogViewModelContainer;
    }
}
